﻿using System;
using System.Configuration;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Xml.Linq;
using KPIS.DBM;

namespace KPIS.GERP.SECURITY.MODEL
{
    public static class SystemInfo
    {
        private static string connectionString = ConfigurationSettings.AppSettings["ConnectionString"].ToString();
        private static DataProvider provider = DataProvider.SqlServer;

        private static string deleteRecordStatus = "D";
        private static string processRecordStatus = "P";
        private static string approveRecordStatus = "A";
        private static string workRecordStatus = "W";
        private static string cancelRecordStatus = "C";
        private static string activeRecordStatus = "U";
        private static string registerRecordStatus = "R";

        private static string cmdJobSite = "JOBSITE";
        private static string cmdPosition = "POSITION";
        private static string cmdEmployee = "EMPLOYEE";

        private static string statCommands = "COMMAND";
        private static string statRecords = "RECORD";

        private static string jsInternal = "2";
        private static string jsExternal = "1";   

        private static string insertComplete = "บันทึกข้อมูลเรียบร้อยแล้ว";
        private static string insertError = "เกิดข้อผิดพลาดในการบันทึกข้อมูล";
        private static string deleteError = "เกิดข้อผิดพลาดในการลบข้อมูล";
        private static string deleteNull = "โปรดเลือกรายการที่ต้องการลบ";
        private static string country_local = "140";
        private static string loginFail = "กรุณาตรวจสอบรหัสผู้ใช้งานหรือรหัสผ่านอีกครั้ง";
        
        public static string _ConnectionString
        {
            get
            {
                return connectionString;
            }
        }

        public static DataProvider _DataProvider
        {
            get
            {
                return provider;
            }
        }

        public static string _DeleteRecordStatus
        {
            get
            {
                return deleteRecordStatus;
            }
        }

        public static string _ProcessRecordStatus
        {
            get
            {
                return processRecordStatus;
            }
        }

        public static string _ApproveRecordStatus
        {
            get
            {
                return approveRecordStatus;
            }
        }

        public static string _CancelRecordStatus
        {
            get
            {
                return cancelRecordStatus;
            }
        }

        public static string _WorkRecordStatus
        {
            get
            {
                return workRecordStatus;
            }
        }

        public static string _ActiveRecordStatus
        {
            get
            {
                return activeRecordStatus;
            }
        }
        public static string _RegisterRecordStatus
        {
            get
            {
                return registerRecordStatus;
            }
        }
        public static string _CmdJobSite
        {
            get
            {
                return cmdJobSite;
            }
        }
        public static string _CmdPosition
        {
            get
            {
                return cmdPosition;
            }
        }
        public static string _CmdEmployee
        {
            get
            {
                return cmdEmployee;
            }
        }
        public static string _StatusCommand
        {
            get
            {
                return statCommands;
            }
        }
        public static string _StatusRecord
        {
            get
            {
                return statRecords;
            }
        }
        public static string _InsertComplete
        {
            get
            {
                return insertComplete;
            }
        }

        public static string _InsertError
        {
            get
            {
                return insertError;
            }
        }

        public static string _DeleteError
        {
            get
            {
                return deleteError;
            }
        }

        public static string _DeleteNull
        {
            get
            {
                return deleteNull;
            }
        }
        public static string _Local
        {
            get
            {
                return country_local;
            }
        }
        public static string _JobsiteInternal
        {
            get
            {
                return jsInternal;
            }
        }
        public static string _JobsiteExternal
        {
            get
            {
                return jsExternal;
            }
        }
        public static string _LoginFail
        {
            get
            {
                return loginFail;
            }
        }
    }
}
